{extend name="index/index" /}
{block name="main"}
 <div class="content-wrapper">
      <div class="page-title">
        <div>
          <h1><i class="fa fa-th-list"></i>  编辑用户</h1>
          <p>Table to display analytical data effectively</p>
        </div>
        <div>
          <ul class="breadcrumb side">
            <li><i class="fa fa-home fa-lg"></i></li>
            <li>Tables</li>
            <li class="active"><a href="#">Data Table</a></li>
          </ul>
        </div>
      </div>
      <div class="row">
        <div class="col-md-12 pa">
        <a class='btn btn-success' href='/admin/user/'>回到用户管理首页</a>
        </div>
      </div>
       <div class="row">
        <div class="col-md-12">
            <div class="modal-dialog" role="document" id='edituser'>
              <div class="modal-content">  
                  <div class="modal-header">  
                      <button type="button" class="close" data-dismiss="modal" aria-label="Close">  
                          <span aria-hidden="true">×</span>  
                      </button>  
                  <h4 class="modal-title">编辑用户</h4>  
                  </div>  
                        <form class="form-horizontal" role="form" action="/admin/user/doedit" method="post" >
                  <div class="modal-body">  
                            <div class="form-group has-warning">
                              <label class="col-sm-2 col-sm-offset-1 col-sm-offset-1 control-label" >用户昵称</label>
                              <div class="col-sm-8">
                                <input type="hidden" class="form-control" name="id" value="{$list['id']}">

                                <input type="text" class="form-control" name="name" value="{$list['name']}">
                              </div>
                            </div>
                            <div class="form-group has-success">
                              <label class="col-sm-2 col-sm-offset-1 control-label" >设置密码</label>
                              <div class="col-sm-8">
                                <input type="text" class="form-control" name="U_Pwd" value="{$list['name']}">
                              </div>
                            </div>
                            <div class="form-group has-error">
                              <label class="col-sm-2 col-sm-offset-1 control-label" >用户邮箱</label>
                              <div class="col-sm-8">
                                <input type="text" class="form-control" name="email" value="{$list['email']}">
                              </div>
                            </div>
                            <div class="form-group has-error">
                              <label class="col-sm-2 col-sm-offset-1 control-label" >注册时间</label>
                              <div class="col-sm-8">
                                <input type="text" class="form-control" name="email" value="{$list['adddate']}" >
                              </div>
                            </div>

                            
                             <div class="form-group has-error">
                              <label class="col-sm-2 col-sm-offset-1 control-label" >用户角色</label>
                              <div class="col-sm-8">
                                 <div class="animated-checkbox">
                                      {foreach $list['roles'] as $vo} 
                                      <label class="col-md-3 mp"> <input type="checkbox" checked value="{$vo.id}" class="changerole" ><span class="label-text"></span>{$vo.name}</label>
                                      {/foreach}
                                  </div>
                              </div>
                            </div>
                             <div class="form-group has-success">
                              <label class="col-sm-2 col-sm-offset-1 control-label" >用户状态</label>
                              <div class="col-sm-8">
                                <div class="toggle-flip">
                                  <label>
                                    <input type="checkbox"><span class="flip-indecator" data-toggle-on="激活" data-toggle-off="禁用"></span>
                                  </label>
                                </div>
                              </div>
                            </div>
                  </div>  
                  <div class="modal-footer">  
                      <button class="btn btn-info" >确认修改</button></span>  
                  </div>  
                        </form>
              </div>
            </div>
        </div>
      </div>
    </div>

{/block}

